<template>
  <div class="centent">
    <div class="cnetext-top">
      <span class="iconfont icon-zuojiantou" @click="fun1()"></span>
      <span class="list">评价列表</span>
    </div>
    <div class="centent2">
      <div class="centent1">
        <h3>商品评价</h3>
        <span
          >质量:
          <van-rate
            v-model="value"
            allow-half
            void-icon="star"
            void-color="#eee"
            color="rgb(0, 0, 0)"
            readonly="ture"
        /></span>
        <span>
          颜值:
          <van-rate
            v-model="value"
            allow-half
            void-icon="star"
            void-color="#eee"
            color="rgb(0, 0, 0)"
            readonly="ture"
        /></span>
        <span
          >脚感:
          <van-rate
            v-model="value"
            allow-half
            void-icon="star"
            void-color="#eee"
            color="rgb(0, 0, 0)"
            readonly="ture"
        /></span>
      </div>
      <div class="centent3">
        <h3>尺码感受</h3>
        <div>
          <span>偏小{{ Pj.min }}</span
          ><span>合适{{ Pj.fit }}</span
          ><span>偏大{{ Pj.mix }}</span>
        </div>
      </div>
      <div class="Bg"></div>
      <div class="evaluates" v-for="(v,i) in Pjx" :key="i">
          <div>
<van-image
  round
  width=".4rem"
  height=".4rem"
  :src="v.imgs"
/>
          </div>
          <div>
              <span>{{v.name}} <nav>{{v.label}}</nav></span>
              <span>{{v.date}}</span>
              <span><nav>选购码数：{{v.size}}</nav> <span class="gang">|</span> <nav>尺码感受：{{v.sizex}}</nav></span>
          </div>
      </div>
    </div>
    <div class="shuju">暂无数据</div>
  </div>
</template>

<script>
import Vue from "vue";
import { Rate } from "vant";
import { Image as VanImage } from 'vant';
Vue.use(VanImage);
Vue.use(Rate);
export default {
  methods: {
    fun1() {
      this.$router.go(-1);
    },
  },
  data() {
    return {
      value: "",
      Pj: [],
      Pjx:[]
    };
  },
  created() {
    this.Pj = JSON.parse(this.$route.query.Pjid);
    this.value = this.Pj.star;
    this.Pjx = this.Pj.pj
  },
};
</script>

<style scoped>
.shuju{
    width: 100%;
    height: .3rem;
    text-align: center;
    margin-bottom: .1rem;
    color: rgb(119, 119, 119);
}
.gang{
    color: rgba(204, 199, 199, 0.705);
    margin-right: .15rem;
     margin-left: .05rem;
}
.Bg {
  background-color: rgb(229, 226, 226);
  width: 100%;
  height: 0.05rem;
  margin-top: 0.1rem;
  margin-bottom: 0.1rem;
}
.evaluates {
  width: 90%;
  min-height: 1rem;
  display: flex;
  margin: auto;
}
.evaluates div:nth-child(1){
    width: .6rem;
    height: .6rem;
    display: flex;
    justify-content: center;
    margin-top: .05rem;
    
}
.evaluates div:nth-child(2){
    margin-left: .1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.evaluates div:nth-child(2) span:nth-child(1){
    display: flex;
   font-size: .2rem;
     height: .25rem;
   line-height: .25rem;
}
.evaluates div:nth-child(2) span:nth-child(2){
   height: .3rem;
   line-height: .3rem;
}
.evaluates div:nth-child(2) span:nth-child(1) nav{
    margin-left: .2rem;
    width: .6rem;
    font-size: .12rem;
    text-align: center;
    height: auto;
    border: .005rem solid rgba(51, 51, 51, 0.678);
}
.evaluates div:nth-child(2) span:nth-child(3){
    display: flex;
     height: .3rem;
   line-height: .3rem;
}
.centent3 {
  width: 90%;
  margin: auto;
  margin-top: 0.3rem;
}
.centent3 div {
  display: flex;
  justify-content: space-between;
  margin-top: 0.2rem;
}
.centent3 div span {
  width: 1rem;
  height: 0.3rem;
  line-height: 0.3rem;
  text-align: center;
  background-color: rgb(243, 241, 241);
}
.centent {
  height: 100vh;
  overflow: scroll;
  width: 100%;
  margin: auto;
  display: flex;
  flex-direction: column;
}
.centent2 {
  flex: 1;
  margin-top: 1rem;
  margin: auto;
  width: 100%;
}
.cnetext-top {
  width: 100%;
  height: 0.8rem;
  line-height: 0.8rem;
  border-bottom: .01rem solid rgba(240, 239, 239, 0.747);
  position: fixed;
  top: 0rem;
  display: flex;
  background-color: white;
  z-index: 999;
}
.list {
  font-size: 0.18rem;
  text-align: center;
  width: 40%;
  margin-left: 25%;
}

.centent1 {
  width: 90%;
  margin: auto;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
}
.centent1 span {
  margin-top: 0.4rem;
  font-size: 0.16rem;
}
</style>